import com.Module.prms.operation;

import mx.controls.Alert;
import mx.rpc.events.ResultEvent;

public function findbyidHandler(event:ResultEvent):void
{
	voperation = event.result as com.Module.prms.operation;
	
	
}


public function saveHandler(event:ResultEvent):void
{
	var operationvo:com.Module.prms.operation = new com.Module.prms.operation();
	operationvo.cmenuId = optmenuid;
	if(event.result.state)
	{
		Alert.show(event.result.msg,"提示");
		operationAction.menuoptlist(operationvo,0, 1000);
	}
	//保存成功后应该清空下面列表的值
	voperation=new com.Module.prms.operation();
}



public function optadd():void
{
	voperation =null;
	voperation=new com.Module.prms.operation();
}

public function optremoveOne(ids:Array):void
{
	operationAction.remove(ids);
}

public function optremoveHandler(event:ResultEvent):void
{
	var operationvo:com.Module.prms.operation = new com.Module.prms.operation();
	operationvo.cmenuId = optmenuid;
	if(event.result.state)
	{
		Alert.show(event.result.msg,"提示");
		operationAction.menuoptlist(operationvo,0, 1000);
	}
	
}